package poker;

import java.util.List;

public class TestPoker {
    public static void main(String[] args) {
        System.out.println("买一副牌：");
        List<Poker> pokerList = Pokers.buyPokers(); //如果同一个类中可以直接用static方法，不需要类名调用
        System.out.println(pokerList);
        System.out.println("=================================");

        System.out.println("洗牌：");
        Pokers.shuffle(pokerList);
        System.out.println(pokerList);
        System.out.println("=================================");

        System.out.println("发牌：");
        System.out.println("手中的牌");
        List<List<Poker>> hands = Pokers.givePokers(pokerList);
        for (int i = 0; i < hands.size(); i++) {
            System.out.println("第"+(i+1)+"个人的牌："+hands.get(i));
        }
        System.out.println("剩下的牌：");
        System.out.println(pokerList);

    }

}